package com.cloud.api.myenum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

public enum ReturnGoodsStatus implements IEnum<Integer> {

    RECEIVED_GOODS(0,"已收货"),

    REJECT_GOODS(1,"拒收"),

    OTHERS(2,"其他");

    ReturnGoodsStatus(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    private Integer value;
    @EnumValue
    @JsonValue
    private String desc;

    @Override
    public Integer getValue() {
        return this.value;
    }
}
